package cn.ekuma.rabbit.imp;

import java.io.File;

import com.openbravo.pos.base.AppProperties;
import com.openbravo.pos.base.BeanFactoryException;

public class ConfigModel extends AbstractModel {
   public static final String NAME="cn.ekuma.rabbit.imp.ConfigModel";
	
	AppProperties properties;
	
	public ConfigModel(AppProperties properties) {
		super();
		this.properties=properties;
	}

	@Override
	public String getModelName() {
		return NAME;
	}

	@Override
	public String getModelDescription() {
		return null;
	}

	@Override
	public Object getBean(String beanfactory) throws BeanFactoryException {
		return null;
	}

	@Override
	public String getVersion() {	
		return "1.0";
	}

	public String getProperty(String sKey){
		return properties.getProperty(sKey);
	}
	
	public File getConfigFile(){
		return properties.getConfigFile();
	}
	
}
